
CREATE TABLE Base_RoleRight
(
	RoleRight_ID VARCHAR2(50) NOT NULL PRIMARY KEY,
	Roles_ID VARCHAR2(50),
	Menu_Id VARCHAR2(50),
	CreateDate DATE DEFAULT(SYSDATE),
	CreateUserId VARCHAR2(50),
	CreateUserName VARCHAR2(50)
);

/*

CREATE TABLE [dbo].[Base_RoleRight](
	[RoleRight_ID] [dbo].[Name(50)] NOT NULL,
	[Roles_ID] [dbo].[Name(50)] NULL,
	[Menu_Id] [dbo].[Name(50)] NULL,
	[CreateDate] [Date] NULL,
	[CreateUserId] [dbo].[Name(50)] NULL,
	[CreateUserName] [dbo].[Name(50)] NULL,
 CONSTRAINT [PK_BASE_ROLERIGHT] PRIMARY KEY NONCLUSTERED 
(
	[RoleRight_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'系统角色菜单关系表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Base_RoleRight'
GO

ALTER TABLE [dbo].[Base_RoleRight]  WITH CHECK ADD  CONSTRAINT [FK_Base_RoleRight_Base_Roles] FOREIGN KEY([Roles_ID])
REFERENCES [dbo].[Base_Roles] ([Roles_ID])
ON DELETE CASCADE
GO

ALTER TABLE [dbo].[Base_RoleRight] CHECK CONSTRAINT [FK_Base_RoleRight_Base_Roles]
GO

ALTER TABLE [dbo].[Base_RoleRight] ADD  CONSTRAINT [DF_Base_RoleRight_CreateDate]  DEFAULT (getdate()) FOR [CreateDate]
GO

*/